/*******************************************************************************
 * Copyright 2011 Google Inc. All Rights Reserved.
 *
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *******************************************************************************/
package com.lvc.fotolivro.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.AbsolutePanel;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.ListBox;
import com.google.gwt.user.client.ui.RootPanel;
import com.smartgwt.client.widgets.Slider;

/**
 * Entry point classes define <code>onModuleLoad()</code>.
 * Tela inicial, onde o usuário irá escolher o álbum de fotos e as configurações iniciais do fotolivro
 *  
 * @author Larissa Nepomuceno Costa
 * @version 1
 * @since 08/10/2012
 */
public class _1 implements EntryPoint {
	public void onModuleLoad() {
		RootPanel rootPanel = RootPanel.get();
		rootPanel.setStyleName("body");
		
		AbsolutePanel absolutePanel_1 = new AbsolutePanel();
		absolutePanel_1.setStyleName("body");
		rootPanel.add(absolutePanel_1, 0, 0);
		absolutePanel_1.setSize("1062px", "596px");
		
		AbsolutePanel absolutePanel_2 = new AbsolutePanel();
		absolutePanel_2.setStyleName("body");
		absolutePanel_1.add(absolutePanel_2, 324, 127);
		absolutePanel_2.setSize("414px", "341px");
		
		Label lblEscolhaOlbum = new Label("Escolha o álbum que contém as fotos para criar seu FotoLivro");
		absolutePanel_2.add(lblEscolhaOlbum, 14, 0);
		lblEscolhaOlbum.setSize("433px", "21px");
		lblEscolhaOlbum.setStyleName("textoGeral");
		
		AbsolutePanel absolutePanel_ = new AbsolutePanel();
		absolutePanel_.setStyleName("quadradinho");
		absolutePanel_2.add(absolutePanel_, 0, 8);
		absolutePanel_.setSize("5px", "5px");
		
		ListBox listBox = new ListBox();
		listBox.addItem("Aniversário Lari");
		listBox.addItem("Férias em Salvador");
		listBox.addItem("Natal 2012");
		listBox.addItem("Formatura Gabi");
		listBox.addItem("Casamento de Mariana e Luiz");
		listBox.addItem("Carnaval");
		absolutePanel_2.add(listBox, 14, 27);
		listBox.setSize("388px", "96px");
		listBox.setVisibleItemCount(5);
		
		Button btnNewButton = new Button("New button");
		absolutePanel_2.add(btnNewButton, 162, 307);
		btnNewButton.setText("Próximo");
		btnNewButton.setSize("90px", "24px");
		
		Label label = new Label("páginas");
		label.setStyleName("gwt-Labellariiii");
		absolutePanel_2.add(label, 308, 195);
		label.setSize("44px", "16px");
		
		Label label_1 = new Label("e");
		label_1.setStyleName("gwt-Labellariiii");
		absolutePanel_2.add(label_1, 171, 195);
		label_1.setSize("15px", "16px");
		
		Label label_2 = new Label("Entre");
		label_2.setStyleName("gwt-Labellariiii");
		absolutePanel_2.add(label_2, 14, 195);
		label_2.setSize("32px", "16px");
		
		Slider slider = new Slider();
		slider.setSize("121px", "39px");
		slider.setVertical(false);
		slider.setShowValue(true);
		slider.setShowTitle(false);
		slider.setShowRange(false);
		slider.setMinValue(1.0f);
		slider.setMaxValue(25.0f);
		slider.setLength(11);
		absolutePanel_2.add(slider, 45, 210);
		
		Label label_3 = new Label("Entre");
		label_3.setStyleName("gwt-Labellariiii");
		absolutePanel_2.add(label_3, 14, 234);
		label_3.setSize("32px", "16px");
		
		Label label_4 = new Label("e");
		label_4.setStyleName("gwt-Labellariiii");
		absolutePanel_2.add(label_4, 171, 234);
		label_4.setSize("15px", "16px");
		
		Slider slider_1 = new Slider();
		slider_1.setSize("121px", "39px");
		slider_1.setVertical(false);
		slider_1.setShowValue(true);
		slider_1.setShowTitle(false);
		slider_1.setShowRange(false);
		slider_1.setMinValue(1.0f);
		slider_1.setMaxValue(25.0f);
		slider_1.setLength(11);
		absolutePanel_2.add(slider_1, 181, 210);
		
		Label label_5 = new Label("fotos por página");
		label_5.setStyleName("gwt-Labellariiii");
		absolutePanel_2.add(label_5, 308, 234);
		label_5.setSize("94px", "16px");
		
		Label label_6 = new Label("Tamanho da página:");
		label_6.setStyleName("gwt-Labellariiii");
		absolutePanel_2.add(label_6, 14, 268);
		label_6.setSize("110px", "16px");
		
		Slider slider_2 = new Slider();
		slider_2.setSize("121px", "39px");
		slider_2.setVertical(false);
		slider_2.setShowValue(true);
		slider_2.setShowTitle(false);
		slider_2.setShowRange(false);
		slider_2.setMinValue(1.0f);
		slider_2.setMaxValue(150.0f);
		slider_2.setLength(11);
		absolutePanel_2.add(slider_2, 45, 171);
		
		Slider slider_3 = new Slider();
		slider_3.setSize("121px", "39px");
		slider_3.setVertical(false);
		slider_3.setShowValue(true);
		slider_3.setShowTitle(false);
		slider_3.setShowRange(false);
		slider_3.setMinValue(1.0f);
		slider_3.setMaxValue(150.0f);
		slider_3.setLength(11);
		absolutePanel_2.add(slider_3, 181, 172);
		
		Label lblConfiguraes = new Label("Configurações");
		lblConfiguraes.setStyleName("textoGeral");
		absolutePanel_2.add(lblConfiguraes, 14, 144);
		lblConfiguraes.setSize("84px", "21px");
		
		AbsolutePanel absolutePanel_4 = new AbsolutePanel();
		absolutePanel_4.setStyleName("quadradinho");
		absolutePanel_2.add(absolutePanel_4, 0, 152);
		absolutePanel_4.setSize("5px", "5px");
		
		ListBox listBox_1 = new ListBox();
		listBox_1.addItem("09 X 12");
		listBox_1.addItem("10 X 15");
		listBox_1.addItem("13 X 18");
		listBox_1.addItem("15 X 21");
		listBox_1.addItem("20 X 25");
		listBox_1.addItem("20 X 30");
		listBox_1.addItem("24 x 30");
		listBox_1.addItem("30 X 45");
		listBox_1.setSelectedIndex(1);
		listBox_1.setDirectionEstimator(false);
		absolutePanel_2.add(listBox_1, 130, 265);
		listBox_1.setVisibleItemCount(1);
		listBox_1.setSize("272px", "22px");
		
		AbsolutePanel absolutePanel_3 = new AbsolutePanel();
		absolutePanel_1.add(absolutePanel_3, 10, 10);
		absolutePanel_3.setStyleName("faixaDeFundoEstreita");
		absolutePanel_3.setSize("1042px", "60px");
		
		AbsolutePanel absolutePanel = new AbsolutePanel();
		absolutePanel_3.add(absolutePanel, 2, 3);
		absolutePanel.setStyleName("faixaDeFundo");
		absolutePanel.setSize("1037px", "53px");
		
		Label lblFotolivro = new Label("FotoLivro");
		absolutePanel.add(lblFotolivro, 422, -11);
		lblFotolivro.setStyleName("tituloGrande");
	}
}

